<table>
    <thead>
    <tr>
    <th>商品名</th>
    <th>卖家</th>
    <th>价格</th>
    <th>交易时间</th>
    </tr>
    </thead>

    <tbody>
    <% @orders.each do |order| %>
        <tr>
        <td><%= link_to order.goodname, good_path(order.good_id) %></td>
        <td><%=order.seller %></td>
        <td><%= order.price %></td>
        <td><%= order.created_at %></td>
        </tr>
    <% end %>
    </tbody>
</table>